#!/usr/bin/env python
#_*_ coding:utf-8 _*_
from django.shortcuts import render, render_to_response, HttpResponse
import json
# Create your views here.
def index(request):
    print request.POST
    return render_to_response('app04/ajax.html')
def ajax(request):
    if request.method=='POST':
        print request.POST
        #后端处理后获取数据data
        data={'status':0,'msg':'请求成功','data':[11,22,33,55,66]}
        return HttpResponse(json.dumps(data))
    else:
        return render_to_response('app04/ajax.html')